package org.techmore.hakka;

import java.util.ArrayList;
import java.util.List;

import org.techmore.bussiness.GridPartAvtivityHandler;
import org.techmore.common.utils.activity.ActivityUtils;
import org.techmore.common.utils.sound.SoundPoolUtils;
import org.techmore.valueobject.GridViewVO;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.GridView;

public class GridPartActivity extends Activity {
	
	private GridView gridView_part_layout = null;
	private Button locationShowBack = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		ActivityUtils.getInstance().setScreenOrientation(this);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gridview_part);
		

		locationShowBack = (Button) findViewById(R.id.locationShowBack);
		
		locationShowBack.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				SoundPoolUtils.getInstance(GridPartActivity.this).playSound(SoundPoolUtils.SOUND_BUTTON_CLICK);
				GridPartActivity.this.finish();
			}
		});
		
		gridView_part_layout = (GridView) findViewById(R.id.gridView_part_layout);
		
		GridPartAvtivityHandler avtivityHandler = GridPartAvtivityHandler.getInstance();
		
		List<GridViewVO> gridViewVOs = new ArrayList<GridViewVO>();
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		gridViewVOs.add(new GridViewVO(R.drawable.ddddsssss,"wwwwwwwww"));
		
		gridView_part_layout.setAdapter(avtivityHandler.new GridViewAdapter(this,this, gridViewVOs));
		
	}
	
}
